//
//  Message_TableViewCell.swift
//  Pods
//
//  Created by eme on 2017/4/10.
//
//

import UIKit

class Message_TableViewCell: UITableViewCell {
    
    @IBOutlet weak var goods_ImageView: UIImageView!
    
    @IBOutlet weak var Message_Label: UILabel!
    
    @IBOutlet weak var message_Title: UILabel!
    
    @IBOutlet weak var noRed_ImageView: UIImageView!

    var item:RowsModel?{
        didSet{
            if let model = self.item{
                self.goods_ImageView.setUrlImage(model.mpic)
                self.message_Title.text = model.mtitle
                self.Message_Label.text = model.msg
                if model.readabled == "0"{
                    self.noRed_ImageView.isHidden = false
                }else{
                    self.noRed_ImageView.isHidden = true
                }
            }
            
        }
        
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        self.superview?.backgroundColor = UIColor.brown
        message_Title.normal_fontSize(13)
        Message_Label.normal_fontSize(12)
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
